﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using BLL.ComplexClasses;
namespace ithub.Controllers
{
    public class AddressController : Controller
    {
        //
        // GET: /Address/

        public ActionResult Index(long id,string module)
        {
            return PartialView("Index", BLL.BL_Address.GetAddressInfo(id, module));
        }

        public ActionResult SaveRecord(Address objAddress)
        {
            BLL.BL_Address.SaveRecord(objAddress);
            return PartialView("Index", BLL.BL_Address.GetAddressInfo(objAddress.id, objAddress.module));
        }

    }
}
